package com.ztf.room.dao;

import com.ztf.room.bean.Student;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentDao {
    @Select("select * from student where account =#{account} and password=#{password}")
    Student login(@Param("account") String account, @Param("password") String password);

    @Select("select * from student")
    List<Student> selectAll();


}
